import { getMonitorList } from "@/api/supervisory";
import commonList from "@/assets/mixin/commonList";
export default {
  mixins: [commonList],
  mounted() {
    this.getMonitorList();
  },
  methods: {
    // 获取列表数据
    async getMonitorList() {
      this.$refs.customLoadmore.loadStatus = true;
      this.layout.showLoading();
      const { status, data } = await getMonitorList(this.formInline);
      if (status === 0 && data) {
        console.log(data);
        this.total = data.total;
        this.listData = this.listData.concat(data.list);
        this.pages = data.pages;
      }
      this.$refs.customLoadmore.loadStatus = false;
      this.layout.hideLoading();
    },
  },
};
